package com.cy.zs.hp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cy.zs.hp.model.HisPatient;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 该表为患者表，当患者预约挂号时使用此表 Mapper 接口
 * </p>
 *
 * @author cgb2008
 * @since 2020-11-28
 */

@Mapper
public interface HisPatientMapper extends BaseMapper<HisPatient> {
    @Select(" select * from  his_patient where phone=#{phone}")
    List<HisPatient> findPatient(String phone);
    @Delete("delete from  his_patient where phone=#{phone}")
    int deletePatient(String phone );
    int insertPatient(HisPatient hisPatient);
}
